package cn.edu.csmzxy.rk233x.auth_system.service;

import cn.edu.csmzxy.rk233x.auth_system.dto.PermissionDTO;
import cn.edu.csmzxy.rk233x.auth_system.entity.SysPermission;
import cn.edu.csmzxy.rk233x.auth_system.entity.SysRole;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @author wumxing
 * @date 2025/10/15 9:50
 * @description
 */
public interface SysPermissionService extends IService<SysPermission> {
    List<SysPermission> selectPermissionTree();
    List<Long> selectPermissionIdsByRoleId(Long roleId);
    void addPermission(PermissionDTO permissionDTO);
    void updatePermission(Long id, PermissionDTO permissionDTO);
    void deletePermission(Long id);
}
